package com.lanqiao.testwork01;

public class Point {

	/**
	 * X轴坐标 
	 */
	private int x;
	
	/**
	 * Y轴坐标
	 */
	private int y;

	// getter/setter方法

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}

	// 构造方法
	public Point() {

	}

	public Point(int x, int y) {
		this.x = x;
		this.y = y;
	}

	/**
	 * 	定义方法，移动point
	 * @param x
	 * @param y
	 */
	public void movePoint() {
		x *= 3;
		y *= 2;
	}
	
	/**
	 * 	打印
	 */
	public void prf() {
		System.out.println("X轴坐标： " + x+",Y轴坐标："+y);
	}
}
